<?php

namespace App\Services;

use Laravel\Scout\Builder;
use Laravel\Scout\Engines\Engine;

class Search extends Engine
{
    /**
     * 更新索引
     * @param \Illuminate\Database\Eloquent\Collection $models
     */
    public function update($models)
    {
    }

    /**
     * 删除索引
     * @param \Illuminate\Database\Eloquent\Collection $models
     */
    public function delete($models)
    {
        // TODO: Implement delete() method.
    }

    /**
     * 搜索
     * @param Builder $builder
     * @return mixed|void
     */
    public function search(Builder $builder)
    {
        // TODO: Implement search() method.
    }

    /**
     * 分页
     * @param Builder $builder
     * @param int $perPage
     * @param int $page
     * @return mixed|void
     */
    public function paginate(Builder $builder, $perPage, $page)
    {
        // TODO: Implement paginate() method.
    }


    public function mapIds($results)
    {
        // TODO: Implement mapIds() method.
    }

    public function map(Builder $builder, $results, $model)
    {
        // TODO: Implement map() method.
    }

    public function getTotalCount($results)
    {
        // TODO: Implement getTotalCount() method.
    }

    public function flush($model)
    {
        // TODO: Implement flush() method.
    }

}